package com.three.dao;

import com.three.domain.Teacher;
import com.three.domain.Users;
import com.three.domain.role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface UserDao {

    public int PageCount(@Param("keyword") String keyword);
    //用户列表
    public List<Teacher> userList(@Param("keyword") String keyword,
                                  @Param("pageIndex")Integer pageIndex,
                                  @Param("pageSize")Integer pageSize);
    //添加用户
    public int addUser(Users users);
    //删除用户
    public int deleteUser(@Param("teacher_ids") List<Integer> teacher_ids);
    //修改用户
    public int updateUser(Users user);

    public List<role> roleList();
}
